package com.inctech.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.inctech.dao.IFileDao;
import com.inctech.model.FileResource;
import com.inctech.service.IFileService;

/**
 * @author YuLiChao
 *
 */
@Service("fileService")
public class FileServiceImpl implements IFileService {

	@Autowired
	private IFileDao fileDao;

	@Override
	public int deleteByPrimaryKey(Map<String, Object> paramMap) {
		return fileDao.deleteByPrimaryKey(paramMap);
	}

	@Override
	public int insert(FileResource file) {
		return fileDao.insert(file);
	}

	@Override
	public int getTocal(Map<String, Object> paramMap) {
		return fileDao.getTocal(paramMap);
	}

	@Override
	public List<FileResource> selectByPage(Map<String, Object> paramMap) {
		return fileDao.selectByPage(paramMap);
	}

	@Override
	public int fileBack(int fileId) {
		return fileDao.fileBack(fileId);
	}
	
}
